package com.otupia.blog.service;

import com.otupia.blog.dao.BlogDao;
import com.otupia.blog.model.Blog;

public class BlogWriteServiceSpringImpl implements BlogWriteService
{
	private BlogDao blogDao;
	
	public BlogDao getBlogDao()
	{
		return blogDao;
	}

	public void setBlogDao(BlogDao blogDao)
	{
		this.blogDao = blogDao;
	}

	@Override
	public void postBlog(Blog blog)
	{
		this.blogDao.insertBlog(blog);
	}

	@Override
	public void updateBlog(Blog blog)
	{
		this.blogDao.updateBlog(blog);
	}

	@Override
	public void deleteBlog(long id)
	{
		this.blogDao.deleteBlogById(id);
	}


}
